<?php
	
	// Root password for this installation.  Make it a good one.
	define('SMUOI_ROOT_PASSWORD', 'Gee, what a tough password!');
	
	// SMUOI installation directory.  Leave this be.
	define('SMUOI_DIR', dirname(__FILE__));
	
	// Include the runtime config.
	require SMUOI_DIR.'/smrc.php';
	
/* 	===============
	INITIAL PROJECT
	
	We need to set up the first project (domain) here manually. This will involve your creating 
	and configuring two domains in apache
*/

	// 8-character identifier for the project
	define('DOMAIN_ID', 'mydomain');
	
	// FQDN of the domain
	define('DOMAIN_NAME', 'mydomain.com');

	// Document root of the domain.  You can alter this if needs be.
	// DOC_DIR is defined in smrc.php and defaults to SMUOI_DIR/data/public
	define('DOCUMENT_ROOT', DOC_DIR.'/'.DOMAIN_ID);
	
	// The domain (usually a subdomain of DOMAIN_NAME) from which SMUOI will manage the project.
	define('SMRDE_DOMAIN_NAME', 'smuoi.mydomain.com');
	
	// Document root of the above.  If you need to move this directory elsewhere, do so and alter this value
	define('SMRDE_DOCUMENT_ROOT', DOC_DIR.'/smrde');
	
/* 	===========
	DATABASE(S)
	
	Settings for the SMUOI database, and for the initial project.  If you like they can use the
	same or different physical databases - uncomment any individual member value from the $domain_database array 
	to use a different setting to $root_database.
*/

	define('MYSQL_ROOT_PASSWORD', '');
	
	$root_database = array(
		'host' => 'localhost',
		'name' => 'smuoi_root',
		'user' => '',
		'pass' => '',
		'table_prefix' => 'sm_',
		// The following variables rely on MYSQL_ROOT_PASSWORD being set
		// Creates this database if it doesn't exist
		'create_db' => true,
		// Creates the user defined above with given password, if not exist
		'create_user' => true
	);
	
	$domain_database = array(
#		'host' => 'localhost',
#		'name' => 'smuoi_'.DOMAIN_ID,
#		'user' => '',
#		'pass' => '',
		'table_prefix' => 'sm_mydomain_',
#		'create_db' => true,
#		'create_user' => true
	);
	
	define('PHP_IS_APACHE_MODULE', null);

